/*package com.example.recruitment_website.controller;


import com.example.recruitment_website.domain.WorkInfo;
import com.example.recruitment_website.service.WorkInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;

@Slf4j
//@RequestMapping("/WorkInfo")
@RestController
public class WorkInfoController {
    @Autowired
    WorkInfoService workInfoService;

    @GetMapping("/findByKey")
    public HashMap findAllTest(String key){
        List<WorkInfo> testList = workInfoService.findInfoByKey(key);
        HashMap<String,Object> map = new HashMap<>();
        map.put("data",testList);
        map.put("msg","请求成功");
        map.put("code",0);
        return map;
    }

}*/
